package com.ice.body.hardware.service.impl;
import com.ice.body.hardware.dao.DeviceWeighDao;
import com.ice.body.hardware.model.DeviceWeigh;
import com.ice.body.hardware.service.DeviceWeighService;
import com.ice.base.dao.BaseDao;
import com.ice.base.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
/**
 * Created with GuoYanBin.
 * Description:称重 serviceImpl
 * Date: 2021-12-16
 * Time: 09:44
 */
@Service
public class DeviceWeighServiceImpl extends BaseServiceImpl<DeviceWeigh> implements DeviceWeighService{
    @Resource 
    private DeviceWeighDao dao;
    @Override
    public BaseDao<DeviceWeigh> getBaseDao() {
        return dao;
    }

    @Override
    public String getWareHouseIdByIp(String ip) {
        return dao.getWareHouseIdByIp(ip);
    }

    @Override
    public DeviceWeigh getByWareHouseId(String warehouseId) {
        return dao.getByWareHouseId(warehouseId);
    }
}
